import java.util.HashMap;
import java.util.Map;

public class StrategyFactory {
    //策略map
    public Map<String,EventApi> strategyMaps = new HashMap<>();

    //根据功能名称获取对应的实现类进行处理
    public EventApi getApiByFuncName(String eventName) throws Exception{
        EventApi api = strategyMaps.get(eventName);
        if(null==api){
            throw new Exception("没有找到该方法");
        }
        return api;
    }
}
